package org.jeecg.modules.charge.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.vo.charge.ChargeMethod;

import java.util.List;

/**
 * @Description: 收款方式
 * @Author: jeecg-boot
 * @Date:   2019-07-04
 * @Version: V1.0
 */
public interface ChargeMethodMapper extends BaseMapper<ChargeMethod> {

    List<ChargeMethod> listByParams(@Param("page") Page<ChargeMethod> page,@Param("name") String name,@Param("tenantId") String tenantId);

    int checkOutLimit(String tenantId);

    int findByName(@Param("tenantId") String tenantId,@Param("methodName") String methodName);

    List<ChargeMethod> listByCondition(@Param("chargeMethod") ChargeMethod chargeMethod);

    List<ChargeMethod> getPayMethodList(@Param("routeType") Integer routeType,@Param("tenantId") String tenantId);
}
